#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include "setting.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void sendData();

public:
    void switchButton_R(bool checked);
    void switchButton_G(bool checked);
    void switchButton_B(bool checked);
    void switchButton_BEEP(bool checked);
    void switchButton_P(bool checked);
    void switchButton_E(bool checked);

private slots:
    void on_btn_setting_clicked();

private:
    Ui::MainWindow *ui;
    bool checked;
    Setting *setting;
    QSerialPort* serialPort;
};

#endif // MAINWINDOW_H
